#include "ezqhttpaccessmanager.h"

using namespace EZQHTTPNS;

EZQHttpAccessManager* EZQHttpAccessManager::shareManager()
{
    static EZQHttpAccessManager* manager = 0;
    if(manager == 0){
        manager = new EZQHttpAccessManager();
    }
    return manager;
}

EZQHttpAccessManager::EZQHttpAccessManager(QObject *parent) :
    QObject(parent)
{
    _networkAccessManager = new QNetworkAccessManager(this);
}
QNetworkAccessManager *EZQHttpAccessManager::networkAccessManager() const
{
    return _networkAccessManager;
}

void EZQHttpAccessManager::setNetworkAccessManager(QNetworkAccessManager *networkAccessManager)
{
    _networkAccessManager = networkAccessManager;
}

